package com.bby.disk.bean.vo;

import com.bby.disk.manager.virtual.VirtualDirectory;
import com.bby.disk.manager.virtual.VirtualObject;
import lombok.Data;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

@Data
@ToString
public class SearchFileVO {
    /**
     * 文件列表
     */
    List<VirtualObject> list;
    /**
     * 搜索区域，网盘、文件夹、空（全局）
     */
    VirtualDirectory area;
    /**
     * 本次查询数
     */
    int total;
    /**
     * 是否是最后一页
     */
    boolean end;

    public SearchFileVO(List<VirtualObject> list, VirtualDirectory area, int total, boolean end) {
        this.list = list;
        this.area = area;
        this.total = total;
        this.end = end;
    }

    public SearchFileVO(int total) {
        list=new ArrayList<>();
        this.total=total;
        end=true;
    }
}
